package cn.funeralobjects.asms.model;

import cn.funeralobjects.util.annotation.ArgHasLength;
import cn.funeralobjects.util.annotation.ArgNonNull;
import cn.funeralobjects.util.annotation.ArgNotZero;
import cn.funeralobjects.utils.aliyun.sms.enums.SendStatus;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 发送记录的结果
 *
 * @author FuneralObjects
 * Create date: 2020/5/31 5:20 PM
 */
@Data
@Accessors(chain = true)
public class SmsSendResult {
    /**
     * 所对应的记录id
     */
    @ArgNotZero
    private Integer recordId;
    /**
     * 接收日期
     */
    @ArgHasLength
    private String receiveDate;
    /**
     * 发送日期
     */
    @ArgHasLength
    private String sendDate;
    /**
     * 错误代码
     */
    @ArgHasLength
    private String errCode;
    /**
     * 实际内容
     */
    @ArgHasLength
    private String content;
    /**
     * 发送状态
     */
    @ArgNonNull
    private SendStatus status;
}
